#include "mainwindow.h"
#include "ui_mainwindow.h"

#include <opencv2/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace cv;

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
    cv::Mat image = imread("D:/Users/acer/Desktop/zhaopian/1.jpg", 1);
    namedWindow( "Display window", WINDOW_AUTOSIZE );
    imshow("Display window", image);
}

MainWindow::~MainWindow()
{
    delete ui;
}

